  
<div class="panel panel-default">
  <!-- Default panel contents -->
  <div class="panel-heading">Product List</div>
  <div class="panel-body">
		<p>
		
		</p>
		<div class="btn-group">
			<form action="dispatch.php" method="post" ><button type="submit" name="target" value="product-add" class="btn btn-default btn-lg">
				<span class="glyphicon glyphicon-plus"></span> Add 
			</button></form>
		</div>

	  <div class="table-responsive">
				<table class="table table-striped">
				  <thead>
					<tr>
					  <th>Name</th>
					  <th>SKU</th>
					  <th>Price</th>
					  <th>Category</th>
					  <th>Action</th>
					</tr>
				  </thead>
				  <tbody>
					<?php 
						$repository=BO::getProductBORepository();
						$productBOs = $repository->getProductBOs(); 
						foreach($productBOs as $productBO)
						{
					?>
					<tr>
					  <td><?php echo $productBO->getName();?></td>
					  <td><?php echo $productBO->getSKU();?></td>
					  <td><?php echo $productBO->getPrice();?></td>
					  <td><?php echo $productBO->getCategoryName();?></td>
					  <td>
						<div class="btn-group">
						 <a href="dispatch.php?target=product-edit&id=<?php echo $productBO->getID()?>"  class="btn btn-default"><span class="glyphicon glyphicon-pencil"></span></a>
						  <a href="dispatch.php?target=product-delete&id=<?php echo $productBO->getID()?>"  class="btn btn-default"><span class="glyphicon glyphicon-trash"></span></a>
						  <div class="btn-group">
							<button type="button" class="btn btn-default dropdown-toggle" data-toggle="dropdown">
							  More 
							  <span class="caret"></span>
							</button>
							<ul class="dropdown-menu" role="menu">
                                                            <?php if($productBO->isOnline()) {?>
                                                                   <li><a href="dispatch.php?target=product-offline&id=<?php echo $productBO->getID();?>">offline</a></li>
                                                                   <?php } else {?>
                                                                   <li><a href="dispatch.php?target=product-online&id=<?php echo $productBO->getID();?>">online</a></li>
                                                                   <?php } ?>

                                                           <li><a href="#"><a href="dispatch.php?target=product-copy&id=<?php echo $productBO->getID();?>">copy</a></li>
                                                         </ul>
						  </div>
						</div>
					  </td>	
					</tr>
					<?php	
						}
					?>
				  </tbody>
				</table>
		</div>	
	</div>
	 <div class="panel-footer">
		<div>
			  <ul class="pagination pagination">
				<li><a href="#"> << </a></li>
				<li class="active"><a href="#">1</a></li>
				<li><a href="#">2</a></li>
				<li><a href="#">3</a></li>
				<li><a href="#">4</a></li>
				<li><a href="#">5</a></li>
				<li><a href="#"> >> </a></li>
			  </ul>
		 </div>
	 </div>	
</div>	
		  
		  
		  